package org.example.campus_sys_backend.service;

import org.example.campus_sys_backend.mapper.TeacherInfoMapper;
import org.example.campus_sys_backend.model.TeacherInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherService {
    @Autowired
    private TeacherInfoMapper teacherInfoMapper;

    public Integer insertTeacher(TeacherInfo teacherInfo){
        return teacherInfoMapper.insertTecaher(teacherInfo);
    }

    public TeacherInfo queryUserById(Integer id){
        return teacherInfoMapper.queryTeacherById(id);
    }
    public TeacherInfo queryUserByName(String teacherName){
        return teacherInfoMapper.queryTeacherByName(teacherName);
    }
}
